# == Schema Information
#
# Table name: role_resources
#
#  id            :integer          not null, primary key
#  role_id       :integer
#  resource_name :string
#  created_at    :datetime         not null
#  updated_at    :datetime         not null
#


class RoleResource < ApplicationRecord
  validates_uniqueness_of :resource_name, scope: :role_id

  belongs_to :role
end
